package cn.etynit.dto;

import lombok.Data;

import javax.validation.constraints.FutureOrPresent;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
public class InformPublishDto {
    @FutureOrPresent(message = "发布时间不能为空！")
    private Date time;
    @FutureOrPresent(message = "过期时间不能为空！")
    private Date expirationTime;
    @NotEmpty(message = "通知标题不能为空！")
    private String title;
    @NotEmpty(message = "通知内容不能为空！")
    private String details;
    private String img;
    @NotNull(message = "员工类型不能为空")
    private Integer type;
}
